package io.cici.cc.mybatis.lite.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public interface TypeHandler<T> {

    void set(PreparedStatement preparedStatement, int index, Object parameter) throws SQLException;

    T get(ResultSet resultSet, String columnName) throws SQLException;

    T get(ResultSet resultSet, int columnIndex) throws SQLException;

}
